//巡查相关接口
import axios from 'axios'
export default{
    //固定场所巡查-列表
    fixedPlacePatrolList(data){
      return axios.get("fixedPlacePatrol/list",{params:data});
    },

	//固定场所巡查-详情
	fixedPlacePatrolDetail(data){
	  return axios.get("fixedPlacePatrol/getDetailById",{params:data});
	},

	//基础设施巡查-桥梁
	infrastructure_qiaoliangList(data){
	  return axios.get("bridgePatrol/list",{params:data});
	},
	//基础设施巡查-桥梁
	infrastructure_qiaoliangDetail(data){
	  return axios.get("bridgePatrol/getById",{params:data});
	},

	//基础设施巡查-高边坡/高挡墙
	infrastructure_highSlopePatrolList(data){
	  return axios.get("highSlopePatrol/list",{params:data});
	},
	//基础设施巡查-高边坡/高挡墙
	infrastructure_highSlopePatrolDetail(data){
	  return axios.get("highSlopePatrol/getById",{params:data});
	},

	//基础设施巡查-涵洞
	infrastructure_handongList(data){
	  return axios.get("culverRoadPatrol/list",{params:data});
	},
	//基础设施巡查-涵洞
	infrastructure_handongDetail(data){
	  return axios.get("culverRoadPatrol/getById",{params:data});
	},

	//基础设施巡查-公路
	infrastructure_gongluList(data){
	  return axios.get("asphaltRoadPatrol/list",{params:data});
	},
	//基础设施巡查-公路
	infrastructure_gongluDetail(data){
	  return axios.get("asphaltRoadPatrol/getById",{params:data});
	},

	//基础设施巡查-路基
	infrastructure_lujiList(data){
	  return axios.get("roadBedPatrol/list",{params:data});
	},
	//基础设施巡查-路基
	infrastructure_lujiDetail(data){
	  return axios.get("roadBedPatrol/getById",{params:data});
	},

	//基础设施巡查-沿线设施
	infrastructure_yanxiansheshiList(data){
	  return axios.get("roadFacilityPatrol/list",{params:data});
	},
	//基础设施巡查-沿线设施
	infrastructure_yanxiansheshiDetail(data){
	  return axios.get("roadFacilityPatrol/getById",{params:data});
	},

	//基础设施巡查-房屋设备
	infrastructure_fangwushebeiList(data){
	  return axios.get("householdPatrol/list",{params:data});
	},
	//基础设施巡查-房屋设备
	infrastructure_fangwushebeiDetail(data){
	  return axios.get("householdPatrol/getById",{params:data});
	},

	//基础设施-审批-通过
	approvePatrol_pass(data){
	  return axios.post("approvePatrol/pass",data);
	},
	//基础设施-审批-去处理
	approvePatrol_toProcess(data){
	  return axios.post("approvePatrol/toProcess",data);
	},
	//基础设施-审批-通过
	approvePatrol_completion(data){
	  return axios.post("approvePatrol/completion",data);
	},
	//基础设施-审批-通过
	approvePatrol_reApprove(data){
	  return axios.post("approvePatrol/reApprove",data);
	},

	//车辆-列表
	carList(data){
	  return axios.get("vehicle/list",{params:data});
	},
	//车辆-详情
	carDetail(data){
	  return axios.get("vehicle/getById",{params:data});
	},
	//车辆-编辑
	carEdit(data){
	  return axios.post("vehicle/addOrUpdate",data);
	},
	//车辆-删除
	carDelete(data){
	  return axios.delete("vehicle",{params:data});
	},
     //查询所有车辆信息
	getCarList(){
       return axios.get("vehicle/listAll");
	},
	//巡查任务-列表
	taskList(data){
	  return axios.get("taskPatrol/list",{params:data});
	},

	//巡查任务-编辑
	taskEdit(data){
	  return axios.post("taskPatrol/addOrUpdate",data);
	},

	//巡查任务-详情
	taskDetail(data){
	  return axios.get("taskPatrol/getDetailById",{params:data});
	},

	//巡查任务-下发
	taskPublish(data){
	  return axios.post("taskPatrol/issuedTask",{},{params:data});
	},

	//巡查任务-删除
	taskDelete(data){
	  return axios.delete("taskPatrol",{params:data});
	},

	//培训-列表
	eduList(data){
	  return axios.get("taskPatrol/list",{params:data});
	},

	//培训-编辑
	eduEdit(data){
	  return axios.get("taskPatrol/list",{params:data});
	},

	//培训-删除
	eduDelete(data){
	  return axios.get("taskPatrol/list",{params:data});
	},

	//培训-详情
	eduDetail(data){
	  return axios.get("taskPatrol/list",{params:data});
	},
	/*
  * gps设备管理***************************************************
  * */
	//设备添加
	addGpsDevice(data){
		return axios.post("gpsDevice/addOrUpdate",data)
	},
	//设备删除
	delGpsDevice(data){
		return axios.delete("gpsDevice",{params:data})
	},
	//设备查询
	getGpsDevice(data){
		return axios.get("gpsDevice/list",{params:data})
	},
	//查询所有设备信息
	getDeviceList(){
		return axios.get("gpsDevice/listAll");
	},
	//验证设备编码不能重复
	getDeviceByCode(data){
		return axios.get("gpsDevice/getByCode",{params:data})
	},
	/*
    * 车辆设备管理**************************************************
    * */

	//添加车辆设备管理
	addCarDevice(data){
		return axios.post("vehicle/boundRelation",{},{params:data})
	},
	//删除车辆设备管理
	delCarDevice(data){
      return axios.post("vehicle/unBoundRelation",{},{params:data})
	},
	//查询车辆设备管理
    getCarDevices(data){
      return axios.get("vehicle/getVehicleDeviceList",{params:data});
	},


	/*
	* 培训管理   train*******************************************************
	* */
	//培训管理添加
	addTrain(data){
		return axios.post("train/add",data)
	},
	//编辑
	updTrain(data){
		return axios.post("train/update",data)
	},
	//删除
	delTrain(data){
		return axios.delete("train",{params:data});
	},
	//查询
   getTrainList(data){
		return axios.get("train/list",{params:data});
   },
	//获取详细信息
	getTrainById(data){
		return axios.get("train/getById",{params:data});
	},
	//下发培训 
	issuedTrain(data){
		return axios.get("train/issuedTrain",{params:data})
	},
	
	//编辑培训纪要 
	editEduEffect(data){
		return axios.post("train/saveRecord",data)
	}


}
